package com.tiantian.ret;

import java.io.Serializable;

/**
 * 结果集实体 Copyright (c) 2015,重庆扬讯软件技术有限公司<br>
 * All rights reserved.<br>
 *
 * 文件名称：Result.java<br>
 * 摘要：简要描述本文件的内容<br>
 * -------------------------------------------------------<br>
 * 原作者：王强<br>
 * 完成日期：2015年4月7日<br>
 */
public class Result<T> implements Serializable {

	private static final long serialVersionUID = 1062799220231583317L;
	private boolean success;// 是否成功
	private String msg;// 消息
	private T retObj;// 返回结果

	public Result(boolean success, String msg) {
		super();
		this.success = success;
		this.msg = msg;
	}

	public Result(boolean success, String msg, T retObj) {
		super();
		this.success = success;
		this.msg = msg;
		this.retObj = retObj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getRetObj() {
		return retObj;
	}

	public void setRetObj(T retObj) {
		this.retObj = retObj;
	}

}
